package com.feinno.urcs.group.log;

import com.feinno.superpojo.type.EnumInteger;

/**
 * Created by wuhao on 15-10-14.
 */
public enum MessageStoreOpType implements EnumInteger {

    BACKUP(0), RECOVERY(1);

    int value;

    private MessageStoreOpType(int value) {
        this.value = value;
    }

    public int intValue() {
        return value;
    }
    public static MessageStoreOpType parse(int value) {
        switch (value) {
            case 0:
                return BACKUP;
            case 1:
                return RECOVERY;
            default:
                return null;
        }
    }
}
